import storage from "@/utils/storage";

export default {
  namespaced: "users",
  state: {
    userInfo: {
      userInfo: storage.get("userInfo"), //持久化的永久存储
    },
  },
  getters: {},
  mutations: {
    SET_USER_INFO(state, payload) {
      state.userInfo = payload;
    },
  },
  actions: {},
};
